{% extends 'base.html' %}
{% block title %}  - Statistic emails{% endblock %}

{% block content %}
<div id="content" style="position:absolute; top:20px; left:0px; width:610px; background-color: #1A1A1A; layer-background-color: #1A1A1A;">
<table width="610">

<tr>
	  <td colspan="5"><p><span style="font-size:14px;color:#CCC">Send statistic e-mails</span></p></td>
</tr>

	<tr>
		<th>Name</th>
		<th>Last sent</th>
		<th width="80" align="center">Page visits</th>
		<th width="80" align="center">Projects</th>
	</tr>
{% for x in les %}
<tr>
	<td><a href="/user/email/{{x.es.user.id}}/" title="Send e-mail"><img src="/site_media/img/status.gif"> {{ x.es.user.first_name }}, {{ x.es.user.last_name }}</a></td>
	<td>{{ x.last_es.time|date:"Y-m-d H:i" }}</td>
	<td align="center">{{ x.es.visits }}</td>
	<td align="center">{{ x.es.project_counts }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}